﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace DynaCAD
{
    /// <summary>
    /// Interaction logic for RenamePartType.xaml
    /// </summary>
    public partial class RenamePartType : Window
    {
        public Template.Type T;
        public RenamePartType(Template.Type Type)
        {
            this.T = Type;
            InitializeComponent();
            PartTypeName.Text = T.PartType;
        }

        private void OkClick(object sender, RoutedEventArgs e)
        {
            this.T.PartType = PartTypeName.Text;
            this.Close();
        }

        private void CancelClick(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
